This one is one of my personal favorites. You can create a prefab scripted button instantly by calling this XCMD. Didn't you always hate having to make the same old buttons all the time? The button's dimensions are exactly 32 pixels by 32. This is so in case you call for an Icon that takes up the entire 32 x 32. The home button will appear in the upper right corner; The arrow buttons appear centered at the bottom.
whichButton: Can be "Home", "Prev", or "Next". This is the only parameter that is required.
icon: If you want, you can specify a particular ICON by it's ID or name. Otherwise you can just rely on the default icons.
xtracmd: For the home button, you can specify "Compact" to include a "doMenu Compact Stack" before you return home. For the Next and Prev buttons, you can specify a visual effect to be executed as it goes to the next card. The default is no compact / visual effect.
sndcmd: You can specify the name of a 'SND ' resource to be played as the button exits. You can just type "H" for the harpsichord, or "B" for "Boing". The other sounds you will have to spell out its whole name. The default is for no sound to be played.
buttonType: The default is card button. Specify "bkgnd" if you want them as background buttons, or if you like "card" for card button.
Note: I f you want to use a default, you should type "". This is correct:
NewButt "Home","","","","Bkgnd"
This is may be recognized incorrectly: NewButt "Home",,,,"Bkgnd"
Tip: The XCMD only checks the first character of these parameters: whichButton, sndcmd, buttonType. The following is ok: NewButt "H","","","H","B"
* Note: As I said before in the introduction, sometimes (I don't know why) Hypercard wants strings in quotes, othertimes not. Experiment. Will this